package com.jming.jike.common;

/**
 * 自定义业务异常
 *
 * @author jming
 */
public class BusinessException extends RuntimeException {

    private String code;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(String message, Throwable arg) {
        super(message, arg);
    }

    public String getCode() {
        return code;
    }

}